<?php 
namespace app\home\controller;
use think\Controller;
/**
* 成绩查询
*/
class Score extends Common
{
	
	public function index(){
		return $this->fetch('score');
	}
	public function querys($sname,$xuehao){
		$reslut=db('students')->alias('a')->join('scoretable b','a.sid = b.students_sid')->where(array('sname'=>$sname,'xuehao'=>$xuehao))->find();
		$this->assign(array(
			'reslut'=>$reslut,
			));
		return $this->fetch('querys');
	}





}